This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
Always include "__Secure-1PSIDTS" to avoid the "SNlM0e value not found" error. #254
+126
−83
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I welcome the overall code refactoring and new features. However, please make sure to conduct QA. Before making a PR, please check the entire functionality by adding it to https://github.com/dsdanielpark/Bard-API/blob/main/func_test.ipynb. Due to various reasons, I couldn't implement test mocking code. I also welcome anyone who can provide test mocking and refactoring. But please keep the existing method names and examples. While I aim to accept PRs as quickly as possible, they may be rejected if QA is not correct.
BARD-API Pull Request Template
Please provide the necessary information as succinctly as possible. I appreciate it if you write it in an easy-to-read format as I don't have much time to dedicate to maintaining this package.
Description
Always include
__Secure-1PSIDTS
to avoid the "SNlM0e value not found" error.If it uses
__Secure-1PSID
only, it will soon meet theSNlM0e value not found
.If it uses
__Secure-1PSID
and__Secure-1PSIDTS
together, it won't.Related Issue
#155
Motivation and Context
#155
I meet the
SNlM0e value not found
just after a few minutes. The__Secure-1PSID
is not changed yet in the browser. But the Bard-API reports the problem. I found that using__Secure-1PSID
and__Secure-1PSIDTS
together will avoid this problem.And also, I found some limitation of browser_cookie3.
I have cookies for .google.com.hk. But it filter the cookies by
like
sql. So the .google.com.hk and .google.com cookies are both in the results. The .google.com.hk cookie will override the .google.com cookie. It may cause the Bard API use the wrong values from .google.com.hk.The problem comes from browser_cookie3. So this problem I can't find a way to fix it unless I delete the .google.com.hk cookies.
How Has This Been Tested?
I tested the sync version. It's working.
But the async version is not tested.
Because I found some problem even with the orignal one.
Thank you once again to all the contributors. Your efforts are greatly appreciated!